<div class="content-white p1000">
    <div class="operaWrap">
        车间：<nz-select class="wd150" nzAllowClear [(ngModel)]="searchParam.wsOrgId" nzPlaceHolder="选择车间">
            <nz-option *ngFor="let item of cjList" [nzLabel]="item.opName" [nzValue]="item.opValue">
            </nz-option>
        </nz-select>
        &nbsp;&nbsp;&nbsp;
        周次：<nz-input-number class="wd150" [(ngModel)]="searchParam.vcWeeknum" [nzMin]="1" [nzMax]="99" [nzStep]="1">
        </nz-input-number>
        &nbsp;&nbsp;&nbsp;
        月份：<nz-month-picker [(ngModel)]="searchParam.vcMonth" nzAllowClear nzPlaceHolder="请选择月份"></nz-month-picker>
        &nbsp;&nbsp;&nbsp;
        状态：<nz-select class="wd150" nzAllowClear [(ngModel)]="searchParam.vcStatus" nzPlaceHolder="请选择状态">
            <nz-option *ngFor="let item of ztList" [nzLabel]="item.opName" [nzValue]="item.opValue">
            </nz-option>
        </nz-select>
        &nbsp;&nbsp;&nbsp;
        <button nz-button nzType="default" (click)="search()"><i nz-icon nzType="search"></i>查询</button>
    </div>
    <div class="operaWrap">
        <ng-container *ngIf="typeName === 'station'">
            <button nz-button nzType="default" (click)="modalShow('addModal')"><i nz-icon nzType="edit"></i>新增</button>
            <button nz-button nzType="default" (click)="modalShow('delModal')"><i nz-icon
                    nzType="delete"></i>删除</button>
            <button nz-button nzType="default" (click)="modalShow('tbModal')"><i nz-icon nzType="mail"></i>提报</button>
        </ng-container>
        <button *ngIf="typeName === 'workarea'" nz-button nzType="default" (click)="modalShow('sign')"><i nz-icon
                nzType="plus-circle"></i>签收</button>
        <button *ngIf="typeName === 'seg'" nz-button nzType="default" (click)="modalShow('approve')"><i nz-icon
                nzType="edit"></i>审批</button>
        <!-- <button nz-button nzType="default" (click)="export()"><i nz-icon nzType="upload"></i>导出</button> -->
    </div>
</div>

<app-table #tcp [tableId]="'workAreaWeave'" [tableScroll]="tableScroll" [headData]="headData" [plainData]="plainData">
</app-table>

<app-operamodal *ngIf="operaList.addModal" [popTitle]="'新增'" [operaType]="'add'" [apiUrl]="apiUrl.add"
    (closeModal)="modalHide('addModal')" (reloadData)="loadList()">
</app-operamodal>
<app-operamodal *ngIf="operaList.sign" [popTitle]="'审批'" [operaType]="'sign'" [apiUrl]="apiUrl.approve"
    [responseData]="tempData" (closeModal)="modalHide('sign')" (reloadData)="loadList()">
</app-operamodal>
<app-operamodal *ngIf="operaList.delModal" [popTitle]="'删除'" [operaType]="'del'" [apiUrl]="apiUrl.del"
    [responseData]="tempData" (closeModal)="modalHide('delModal')" (reloadData)="loadList()">
</app-operamodal>
<app-operamodal *ngIf="operaList.tbModal" [popTitle]="'提报'" [operaType]="'tb'" [apiUrl]="apiUrl.tb"
    [responseData]="tempData" (closeModal)="modalHide('tbModal')" (reloadData)="loadList()">
</app-operamodal>
<app-operamodal *ngIf="operaList.approve" [popTitle]="'审批'" [operaType]="'approve'" [apiUrl]="apiUrl.approve"
    [responseData]="tempData" (closeModal)="modalHide('approve')" (reloadData)="loadList()">
</app-operamodal>